<?php

// uncomment the following to define a path alias
// Yii::setPathOfAlias('local','path/to/local-folder');

// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
return array(
    'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
    'name'=>'Spartan Logistics Database',

// gzip the output.
/*
  'onBeginRequest'=>create_function('$event', 'return ob_start("ob_gzhandler");'),
  'onEndRequest'=>create_function('$event', 'return ob_end_flush();'),
 */
// preloading 'log' component
    'preload'=>array('log'),

// autoloading model and component classes
    'import'=>array(
        'application.models.*',
        'application.components.*',
        'application.extensions.Portlet',
        'application.extensions.pdf.*',
        'application.extensions.pdf.tcpdf.*',
        'application.extensions.custom_validations.*',
        ),
    'modules'=>array(
        'document'=>array('defaultController'=>'document'),
        'report',
        'gii'=>array(
            'class'=>'system.gii.GiiModule',
            'password'=>'1q2w3e4r5t',
			'ipFilters'=>false,
		),
	),
// application components
    'components'=>array(
        'request'=>array(
            'enableCsrfValidation'=>true,
            ),
            'log'=>array(
                'class'=>'CLogRouter',
                'routes'=>array(
                    array(
                        'class'=>'CFileLogRoute',
                        'levels'=>'error, warning',
                        ),
                        array(
                    'class'=>'CProfileLogRoute',
                    'levels'=>'Info',
                    
                ),
                ),
            ),
            'clientScript'=>array(
            	'scriptMap'=>array(
    				'jquery.js'=>'http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js',
            		'jquery-ui.min.js'=>'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js',
				),
            ),
            'urlManager'=>array(
                'urlFormat'=>'path',
                'urlSuffix'=>'.html',
                //
                //'showScriptName'=>true,
           ),
        'user'=>array(
// enable cookie-based authentication
            'allowAutoLogin'=>true,
           	//'class'=>'application.components.WebUser',
            ),


// uncomment the following to set up database
        'db'=>array(
            'connectionString'=>'mysql:host=localhost;dbname=spartanl_logistics',
//'connectionString'=>'sqlite:/spartan1/protected/data/sqllite/database.sql',
            'username'=>'spartanl_admin',
            'password'=>'shohoku10',
        ),

    ),

// application-level parameters that can be accessed
// using Yii::app()->params['paramName']
    'params'=>array(
// this is used in contact page
        'adminEmail'=>'webmaster@example.com',
        'company'=>array('name'=>'Spartan Logistics Pte Ltd',
            'address'=>'No. 1 Lok Yang Way Unit 14B, Singapore 628623',
            'tel'=>'62684855, 62680855',
            'fax'=>'62626498',
            'gst'=>'20-0303367-N',
            'roc'=>'200303367N',),
        'company_logo'=>'/spartan/images/our_logo.jpg',
        'PageShortcut'=>array('metaLink'=>array('application-name'=>'Spartan Logistics','description'=>'Database System','application-url'=>''),'shortcut'=>array('32x32'=>'','48x48'=>'')),
    ),
);